<?php
return [
    'app_id' => env('WECHAT_APP_ID', ''),
    'secret' => env('WECHAT_SECRET', ''),
    // 指定 API 调用返回结果的类型：array(default)/collection/object/raw/自定义类名
    'response_type' => 'array',
    // 缓存 目录为 `runtime/wechat.log`
    'log' => [
        'level' => 'debug',
        'file' => app()->getRuntimePath() . '/wechat.log',
    ],
    // 支付配置
    'pay' => [
        'mch_id' => env('WECHAT_MCH_ID', ''),
        // V2 密钥
        'v2_key' => env('WECHAT_V2_KEY', ''),
        // V3 密钥
        'v3_key' => env('WECHAT_V3_KEY', ''),
        // 绝对路径
        'cert_path' => app()->getRuntimePath() . '/cert/cert.pem',
        // 绝对路径
        'key_path' => app()->getRuntimePath() . '/cert/key.pem',
        // 异步通知地址
        'notify_url' => app()->request->scheme(). '://'. app()->request->host(). '/index.php/wechat/notify',
    ]
];
